package com.woniuxy.stage3demo.mapper.hpxmapper;

import com.woniuxy.stage3demo.bean.hpxbean.OrderBean;
import com.woniuxy.stage3demo.pageHelper.PageRequest;
import org.apache.ibatis.annotations.*;
import java.util.List;

@Mapper
public interface OrderMapper {


    //全部分页查询
    List<OrderBean> findAllByParams(@Param("p") PageRequest request, @Param("o") OrderBean orderBean);

    //关闭订单(待审核状态-0 和 待付款状态-1）
    @Update("update order_infor set status = 4 where status = 0 || status =1 ")
    int closeAllwfk();

    //删除关闭订单-4
    @Update("update order_infor set del_flag = 1 where status = 4 ")
    int deleteAllgb();



}


